﻿@using WineStore.Models
@model WineStore.Models.News
@{
    ViewBag.Title = "NewsDetail";
    Layout = "~/Views/Shared/HomeLayout.cshtml";
}
<script type="text/javascript">
    $(function () {
        /* For zebra striping */
        $("table tr:nth-child(odd)").addClass("odd-row");
        /* For cell text alignment */
        $("table td:first-child, table th:first-child").addClass("first");
        /* For removing the last border */
        $("table td:last-child, table th:last-child").addClass("last");
    });
</script>
<div class="center_title_bar"><img style="position:relative; top:3px;" src="../../Content/Images/Home/down_gray.png"/> Chi tiết tin tức</div>

<div class="prod_box_big">
   
            <!-- -->

            <div id="main" style="width: 586px; margin-left:-14px; background-color:#fff;">

                <div class="entry single">

                    <div class="entry-header">

                        <h2 class="title">@Model.NewsTitle_VN</h2>
                        <span style="font-size: smaller; color: brown;">
                            <br />
                            Published on <a href="#">@Model.DateAdd</a></span>

                    </div>
                    <!-- end .entry-header -->

                    <div class="entry-content">
                        @Html.Raw(@Model.NewsContent_VN)
                    </div>
                    <!-- end .entry-content -->

                    <div class="entry-footer">
                        <strong class="align-left" style="font-size:13px;">Tin tức khác: &nbsp;</strong>
                        @foreach (var item in (IList<News>)ViewBag.News)
                        {
                            <p><img style="position:relative; top:4px;" src="../../Content/Images/Home/icon_news.png"/><a href="../../Home/NewsDetail?id=@item.NewsId" style="text-decoration:none; font-size:12px;">@item.NewsTitle_VN</a></p>
                        }
                    </div>

                    <!-- end .entry-footer -->

                </div>
                <!-- end .entry -->

            </div>

</div>
